enum MirrorMode {SMM_PLANE,SMM_CUBE};

class Mirror;

typedef std::list<Mirror*> TMirrorList;
TMirrorList mirrorslist;

namespace MirrorsShare
{
	Mirror *currentmirror;
}

class Mirror
{
	MirrorMode mm;
	Entity *host;
	Texture *texture;
	Camera *vcam;
	int width;
	int height;
	Effect *fbo;
	int updatefrenckly;
	int use_oq;

public:
	Mirror(MirrorMode mode,int width,int height);
	~Mirror();

	void Render();
	void BindEntity(Entity *ent);

	Texture *GetTexture();
};

